package commands;

/**
 * The server version of a Command to send a text message to other Clients in the game
 */
public class ChatCommand extends Command
{
	public ChatCommand() {
		this(null);
	}

	public ChatCommand(String text) {
		setText(text);
	}

	public String getText() {
		return text;
	}

	public void setText(String message) {
		this.text = message;
	}

	public String toString() {
		return text;
	}

	public String getMessage() {
		return "<b>" + player + "</b>: " + text;
	}

	private String text;
}